<template>
	<div>
		<div class="home-list clearfix">
			<div class="list-wrap">
				<div class="list-left">
					<van-image width="80" :src="detailData.orderProductVo.smallPic" radius="10px" />
				</div>
				<div class="list-right">
					<h3>{{detailData.orderProductVo.productName}}({{detailData.orderProductVo.farmName}})</h3>
					<div class="sale-box clearfix">
						<span class="sale-money nr_weight">养殖地：{{detailData.orderProductVo.originProvince}}</span>
						<span class="sale-money span2">牧场：{{detailData.orderProductVo.farmName}}</span>
					</div>
					<div class="sale-box clearfix">
						<span class="sale-money nr_weight">重量：{{detailData.orderProductVo.productWeight}}{{detailData.orderProductVo.productWeightUnit}}</span>
						<span class="sale-money span2">单价：{{detailData.orderProductVo.salesPrice}}{{detailData.orderProductVo.salesPriceUnit}}</span>
					</div>
					<div class="price-box clearfix">
						<span class="price"><i>{{detailData.orderProductVo.totalPrice}}</i><em>{{detailData.orderProductVo.totalPriceUnit}}</em></span>
					</div>
				</div>
			</div>
		</div>	
		<div class="yz-box">
			<span class="yz_span">养殖期：<i style="color: #31BC8D;">{{detailData.orderProductVo.timeLimit}}</i>个月</span>
			<span class="yz_jh">剩余交货期：<i style="color: #31BC8D;">{{detailData.orderProductVo.deliveryMonth}}</i>个月</span>
		</div>
		<div class="calculation">
			<div class="calculation-wrap">
				<div class="list fitst-list">
					<span class="title">购买数量</span>
					<span class="subtitle count">{{detailData.orderProductVo.quantity}}头</span>
					
				</div>
				<div class="list">
					<span class="list-title">总重量</span>
					<span class="subtitle">{{detailData.orderProductVo.productTotalWeight}}kg</span>
				</div>
				<div class="list">
					<span class="list-title">总金额</span>
					<span class="subtitle"><i>{{detailData.orderProductVo.orderMoney}}元</i></span>
				</div>
				<div class="list">
					<span class="list-title">配送方式</span>
					<span class="subtitle">{{detailData.orderProductVo.shipment}}</span>
				</div>
				<div class="list">
					<span class="list-title">物流费用</span>
					<span class="subtitle"><i>{{detailData.orderProductVo.expressFee}}元</i></span>
				</div>
				<div class="list">
					<span class="list-title">配送时间</span>
					<span class="subtitle">{{detailData.orderProductVo.expressTime}}<img src="@/assets/img/home_img12.png" class="icon-ps" alt="" @click="showtip"></span>
				</div>
				
			</div>
		</div>
	
	</div>
</template>

<script>
	
	export default {
		props: {
			detailData: Object
		},
		methods: {
			showtip(){
				this.$toast({
					message:'预计配送时间：养殖完成后的15个工作日内，完成屠宰加工后以冷链物流形式发货。',
					duration: 3000,
					className: 'paytoast'
				});
			},
		}
	}
	
</script>

<style lang="scss" scoped>
	.calculation{
		background-color: #fff;
		margin-bottom: 10px;
		.calculation-wrap{
			padding: 0 16px;
			display: flex;
			align-items: center;
			font-size: 16px;
			position:relative;
			flex-wrap: wrap;
			.fitst-list{
				width: 100%;
				height: 70px !important;
				display: flex;
				align-items: center;
				.count{
					font-size: 16px !important;
				}
			}
			.list{
				width: 100%;
				height: 46px;
				display: flex;
				align-items: center;
				border-bottom: 1px solid #F2F2F2;
				.list-title{
					font-size: 14px;
					color: #5D6164;
				}
				.subtitle{
					position: absolute;
					left: 104px;
					font-size: 14px;
					i{
						color: #31BC8D;
					}
					.icon-ps{
						width: 16px;
						margin-left: 4px;
						margin-bottom: -3px;
					}
				}
				.stepper{
					position: absolute;
					right: 16px;
				}
			}
		}
	}
	
	.yz-box{
		width: 100%;
		height: 34px;
		line-height: 34px;
		background-color: #fff;
		font-size: 12px;
		color: #969C9E;
		padding: 0 16px;
		margin-bottom: 10px;
		.yz_span{
			float: left;
		}
		.yz_jh {
			float: right;
		}
	}
	.home-list {
			width: 100%;
			padding: 16px 16px 18px 16px;
			background-color: #fff;
			border-bottom: 1px solid #f8f8f8;
			.list-wrap {
				width: 100%;
				display: flex;
				.list-left {
					height: 80px;
					.van-image {
						height: 80px;
					}
				}
				.list-right {
					height: 100%;
					flex: 3;
					padding: 1px 0 0 16px;
					h3 {
						color: #344047;
						font-size: 16px;
						text-align: left;
						margin-bottom: 10px;
						font-weight: 400;
					}
					.price-box {
						margin-top: 8px;
						.price {
							font-size: 12px;
							color: #F58523;
							float: left;
							i{
								font-weight: 500;
								font-size: 16px;
							}
							em{
								color: #969C9E;
								margin-left: 4px;
							}
							
						}
					}
					.sale-box {
						color: #969C9E;
						font-size: 12px;
						margin-bottom: 4px;
						.nr_weight {
							float: left;
						}
						.span2{
							float: right;
						}
					}
				}
			}
		}
		
</style>
